package com.action.admin;
import com.db.admin.*;
import com.opensymphony.xwork2.ModelDriven;
import com.opensymphony.xwork2.Preparable;

import java.util.*;
public class ZipcodeAction{
	
	private String dong;
	private int count;
	
	public int getCount() {
		return count;
	}

	private List<ZipcodeVO> list = new ArrayList<ZipcodeVO>();
	
	
	public List<ZipcodeVO> getList() {
		return list;
	}


	public void setDong(String dong) {
		this.dong = dong;
	}


	public String execute()throws Exception
	{
		count = AdminMemberDAO.zipcodeCount(dong);
		list = AdminMemberDAO.zipcodeFind(dong);
		return "success";
	}

}
